﻿////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// <copyright>Copyright 2008-2011 Andreas Huber Doenni</copyright>
// Distributed under the Microsoft Public License (Ms-PL).
// See accompanying file License.txt or copy at http://mews.codeplex.com/license.
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

namespace Mews.Application
{
    using System;
    using System.Diagnostics.CodeAnalysis;

    /// <summary>The exception that is thrown when the construction of a <see cref="NetworkConnection"/> object
    /// fails.</summary>
    [SuppressMessage("Microsoft.Design", "CA1064:ExceptionsShouldBePublic", Justification = "For internal use only.")]
    internal sealed class NetworkConnectionFailedException : Exception
    {
        private readonly NetworkConnectionStatus status;

        internal NetworkConnectionFailedException(NetworkConnectionStatus status) : base("Network connection failed.")
        {
            this.status = status;
        }

        internal NetworkConnectionStatus Status
        {
            get { return this.status; }
        }
    }
}
